<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<LINK href="<%=basePath%>/css/top.css" type=text/css rel=stylesheet>
<LINK href="<%=basePath%>/css/main.css" type="text/css" rel="stylesheet" />

<script Language="JavaScript">
window.setTimeout('this.location.reload();',60000);
function out_confirm(confirm,out_id)
{
  myleft=(screen.availWidth-450)/2;
  is_mobile=true;

  if(confirm==2)
  {
     URL="out_reason.aspx?out_id="+out_id+"&is_mobile="+is_mobile;
     window.open(URL,"reason","height=300,width=450,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,left="+myleft+",top=60,resizable=yes");  
  }
  else
  {
     URL="out_confirm.aspx?out_id="+out_id+"&is_mobile="+is_mobile;
     window.location=URL;
  }
}

function leave_confirm(confirm,leave_id)
{
  myleft=(screen.availWidth-450)/2;
  is_mobile=true;

  if(confirm==2)
  {
     URL="leave_reason.aspx?leave_id="+leave_id+"&is_mobile="+is_mobile;
     window.open(URL,"reason","height=300,width=450,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,left="+myleft+",top=60,resizable=yes");  
  }
  else
  {
     URL="leave_confirm.aspx?leave_id="+leave_id+"&is_mobile="+is_mobile;
     window.location=URL;
  }
}

function evection_confirm(confirm,evection_id)
{
  myleft=(screen.availWidth-450)/2;
  is_mobile=true;

  if(confirm==2)
  {
     URL="evection_reason.aspx?evection_id="+evection_id+"&is_mobile="+is_mobile;
     window.open(URL,"reason","height=300,width=450,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,left="+myleft+",top=60,resizable=yes");  
  }
  else
  {
     URL="evection_confirm.aspx?evection_id="+evection_id+"&is_mobile="+is_mobile;
     window.location=URL;
  }
}

function leave_destroy(leave_id)
{
	myleft=(screen.availWidth-450)/2;
	URL="leave_destroy.aspx?leave_id="+leave_id;
    window.open(URL,"destroy","height=300,width=450,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,left="+myleft+",top=60,resizable=yes");  
}

		</script>
</HEAD>
<body topmargin="5">
<form name="Form1" method="post" action="index.aspx" id="Form1">
<div><input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE"
	value= /></div>


<!------------------------------------- 今日外出审批 ------------------------
			<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td class="Big"><img src="/images/menu/attendance.gif" align="absMiddle"><span class="big3"> 外出审批</span><br>
					</td>
				</tr>
			</table>
			-------> <!------------------------------------- 请假审批 ------------------------------->
<table border="0" width="100%" cellspacing="0" cellpadding="3"
	class="small">
	<tr>
		<td class="Big"><img
			src="<%=basePath%>/img/office/attendance.gif" align="absMiddle"><span
			class="big3"> 请假审批</span><br>
		</td>
	</tr>
</table>

<table border="0" cellspacing="1" width="95%" class="small"
	bgcolor="#000000" cellpadding="3">
	<TR class="TableHeader">

		<td nowrap align="center">姓名</td>
		<td nowrap align="center">请假原因</td>
		<td nowrap align="center">开始时间</td>
		<td nowrap align="center">结束时间</td>
		<td nowrap align="center">申请销假时间</td>
		<td nowrap align="center">申请类型</td>
		<td nowrap align="center">操作</td>
	</TR>
	<c:forEach items="${queryLeave}" var="a">
		<tr class="TableData">

			<td nowrap align="center"><c:out value="${a.leavePersonName}"></c:out>
			</td>
			<td nowrap align="center"><c:out value="${a.leaveReason}"></c:out>
			</td>
			<td nowrap align="center"><c:out value="${a.beginTime}"></c:out></td>
			<td nowrap align="center"><c:out value="${a.endTime}"></c:out></td>
			<td nowrap align="center">无</td>
			<td nowrap align="center">请假申请</td>
			<td nowrap align="center"><a
				href="ApproveServlet?leave=edit_1&&leaveId=${a.leaveId} ">批准</a> <a
				href="ApproveServlet?leave=edit_2&&leaveId=${a.leaveId}">不批准</a></td>
		</tr>
	</c:forEach>
</table>

&nbsp; <br>
<table width="95%" border="0" cellspacing="0" cellpadding="0" height="3">
	<tr>
		<td background="img/dian1.gif" width="100%"></td>
	</tr>
</table>

</form>
</body>
</HTML>

